<template>
    <div class="floor-wrapper">
        <div class="floor-box" v-for="(item,i) in findsList" :key="i" @click='goFloorPage(item.id)'>
            <img :src="item.logo" alt="">
            <div class="bottom-box">
                <p class="title">{{item.name}}</p>
                <p class="address"><img src="@/assets/images/addr.png" alt="">{{item.prov}}{{item.city}}{{item.dist}}{{item.addr}}</p>
            </div>
        </div>
    </div>
</template>

<script>
export default {
  props: ["findsList"],
  data() {
    return {};
  },
  methods: {
    goFloorPage(id) {
      this.$router.push({
        path: "/floordetail",
        query: {
          id: id
        }
      });
    }
  }
};
</script>

<style lang="scss">
.floor-wrapper {
  padding: 0 48px;
  margin-top: 24px;
  .floor-box {
    margin-top: 24px;
    position: relative;
    > img {
      width: 100%;
      height: 614px;
    }
    .bottom-box {
      height: 164px;
      left: 0;
      right: 0;
      bottom: 0;
      background: #fff;
      opacity: 0.8;
      position: absolute;
      padding-left: 24px;
      .title {
        font-size: 36px;
        font-weight: 500;
        color: #333;
        margin: 0;
        line-height: 80px;
      }
      .address {
        font-size: 32px;
        color: #333;
        margin: 0;
        // margin-top: 26px;

        img {
          width: 22px;
          height: 32px;
          margin-right: 20px;
          margin-top: -5px;
          vertical-align: middle;
        }
      }
    }
  }
}
</style>
